﻿// Copyright (c) 2023 bradson
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

namespace PerformanceFish.Events;

public static class StaticEvents
{
	public static event Action CacheCleared
	{
		add => Cache.Utility.Cleared += value;
		remove => Cache.Utility.Cleared -= value;
	}

	public static event Action? StaticConstructorOnStartupCalled;

	internal static void OnStaticConstructorOnStartupCalled() => StaticConstructorOnStartupCalled?.Invoke();
}